﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="adm_articleFeatured_upload.aspx.cs" Inherits="Admin_adm_articleFeatured_upload" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
  <table cellspacing="1" cellpadding="0" border="0"> 
																			<tbody>
																				<tr bgcolor="#b6a8ad">
																					<td valign="top" rowspan="2">
																					
																					
																					    <asp:GridView ID="grvF1" BorderStyle="None"  runat="server" AutoGenerateColumns="False" 
                                                                                            ShowHeader="False" DataKeyNames="ID" onrowdeleting="grvF1_RowDeleting">
                                                                                            <Columns>
                                                                                                <asp:TemplateField>
                                                                                                    <ItemTemplate>
                                                                                                         <a href='javascript:openWin(<%# Eval("ID") %>,"<%=ckid %>")'>
                                                                                                         <img  src='../<%# FeaturedImage(Eval("ID"),Eval("kTitle"),Eval("fYear"),Eval("FeaturedType"))  %>'
                                                                                                        alt='<%# Eval("uTitle") %>'style="width:322px; height:245px;" />
                                                                                                        </a><br />
                                                                                                         Image Featured <%# Eval("FeaturedType")%>                                                                                                      
                                                                                                         <asp:ImageButton CommandName="Delete" OnClientClick="return confirm('Do you want to delete?')" 
                                                                                                        CommandArgument='<%#  Eval("ID").ToString()+";"+FeaturedImage(Eval("ID"),Eval("kTitle"),Eval("fYear"),Eval("FeaturedType")) %>'
                                                                                                         ID="btnDelete1" runat="server"  ImageUrl="~/images/ico_delete.gif"
                                                                                                             oncommand="btnDelete1_Command" />
                                                                                                             
                                                                                                    </ItemTemplate>
                                                                                                </asp:TemplateField>
                                                                                            </Columns>
                                                                                        </asp:GridView>
																					
																					
																					</td>
																					<td>
																					
																					
																					    <asp:GridView ID="grvF2" BorderStyle="None"  runat="server" AutoGenerateColumns="False" 
                                                                                            ShowHeader="False" DataKeyNames="ID" onrowdeleting="grvF2_RowDeleting">
                                                                                            <Columns>
                                                                                                <asp:TemplateField>
                                                                                                <ItemTemplate>
                                                                                                <a href='javascript:openWin(<%# Eval("ID") %>,"<%=ckid %>")'>
                                                                                                          <img  src='../<%# FeaturedImage(Eval("ID"),Eval("kTitle"),Eval("fYear"),Eval("FeaturedType"))  %>'
                                                                                                        alt='<%# Eval("uTitle") %>' style="width:200px; height:94px;"/>
                                                                                                        </a><br />
                                                                                                          Image Featured <%# Eval("FeaturedType")%>
                                                                                                        <asp:ImageButton CommandName="Delete" OnClientClick="return confirm('Do you want to delete?')" 
                                                                                                        CommandArgument='<%#  Eval("ID").ToString()+";"+FeaturedImage(Eval("ID"),Eval("kTitle"),Eval("fYear"),Eval("FeaturedType")) %>'
                                                                                                         ID="btnDelete2" runat="server"  ImageUrl="~/images/ico_delete.gif"
                                                                                                             oncommand="btnDelete2_Command" />
                                                                                                        
                                                                                                    </ItemTemplate>
                                                                                                </asp:TemplateField>
                                                                                            </Columns>
                                                                                        </asp:GridView>
																					
																					
																					</td>
																				</tr>
																				<tr bgcolor="#b6a8ad">
																					<td>
																					
																					    <asp:GridView ID="grvF3" BorderStyle="None"  runat="server" AutoGenerateColumns="False" 
                                                                                            ShowHeader="False" DataKeyNames="ID" onrowdeleting="grvF3_RowDeleting">
                                                                                            <Columns>
                                                                                                <asp:TemplateField>
                                                                                                <ItemTemplate>
                                                                                                <a href='javascript:openWin(<%# Eval("ID") %>,"<%=ckid %>")'>
                                                                                                         <img  src='../<%# FeaturedImage(Eval("ID"),Eval("kTitle"),Eval("fYear"),Eval("FeaturedType"))  %>'
                                                                                                        alt='<%# Eval("uTitle") %>' style="width:200px; height:150px;"/>
                                                                                                        </a><br />
                                                                                                         Image Featured <%# Eval("FeaturedType")%>
                                                                                                        <asp:ImageButton CommandName="Delete" OnClientClick="return confirm('Do you want to delete?')" 
                                                                                                        CommandArgument='<%#  Eval("ID").ToString()+";"+FeaturedImage(Eval("ID"),Eval("kTitle"),Eval("fYear"),Eval("FeaturedType")) %>'
                                                                                                         ID="btnDelete3" runat="server"  ImageUrl="~/images/ico_delete.gif"
                                                                                                             oncommand="btnDelete3_Command" />
                                                                                                        
                                                                                                    </ItemTemplate>
                                                                                                </asp:TemplateField>
                                                                                            </Columns>
                                                                                        </asp:GridView>
																					
																					</td>
																				</tr>
																				<tr bgcolor="#b6a8ad">
																					<td>
																					
																					    <asp:GridView ID="grvF4" BorderStyle="None" runat="server" AutoGenerateColumns="False" 
                                                                                            ShowHeader="False" onrowdeleting="grvF4_RowDeleting">
                                                                                            <Columns>
                                                                                                <asp:TemplateField>
                                                                                                <ItemTemplate>
                                                                                                <a href='javascript:openWin(<%# Eval("ID") %>,"<%=ckid %>")'>
                                                                                                           <img  src='../<%# FeaturedImage(Eval("ID"),Eval("kTitle"),Eval("fYear"),Eval("FeaturedType"))  %>'
                                                                                                        alt='<%# Eval("uTitle") %>' style="width:322px; height:94px;" />
                                                                                                        </a><br />
                                                                                                           Image Featured <%# Eval("FeaturedType")%>
                                                                                                        <asp:ImageButton CommandName="Delete" OnClientClick="return confirm('Do you want to delete?')" 
                                                                                                        CommandArgument='<%#  Eval("ID").ToString()+";"+FeaturedImage(Eval("ID"),Eval("kTitle"),Eval("fYear"),Eval("FeaturedType")) %>'
                                                                                                         ID="btnDelete4" runat="server"  ImageUrl="~/images/ico_delete.gif"
                                                                                                             oncommand="btnDelete4_Command" />
                                                                                                        
                                                                                                    </ItemTemplate>
                                                                                                </asp:TemplateField>
                                                                                            </Columns>
                                                                                        </asp:GridView>
																					
																					</td>
																					<td>
																					
																					    <asp:GridView ID="grvF5" BorderStyle="None"  runat="server" AutoGenerateColumns="False" 
                                                                                            ShowHeader="False" onrowdeleting="grvF5_RowDeleting">
                                                                                            <Columns>
                                                                                                <asp:TemplateField>
                                                                                                <ItemTemplate>
                                                                                                          <a href='javascript:openWin(<%# Eval("ID") %>,"<%=ckid %>")'>
                                                                                                            <img  src='../<%# FeaturedImage(Eval("ID"),Eval("kTitle"),Eval("fYear"),Eval("FeaturedType"))  %>'
                                                                                                        alt='<%# Eval("uTitle") %>' style="width:200px; height:94px;"  /></a>
                                                                                                        <br />
                                                                                                            Image Featured <%# Eval("FeaturedType")%>
                                                                                                        <asp:ImageButton CommandName="Delete" OnClientClick="return confirm('Do you want to delete?')" 
                                                                                                        CommandArgument='<%#  Eval("ID").ToString()+";"+FeaturedImage(Eval("ID"),Eval("kTitle"),Eval("fYear"),Eval("FeaturedType")) %>'
                                                                                                         ID="btnDelete5" runat="server"  ImageUrl="~/images/ico_delete.gif"
                                                                                                             oncommand="btnDelete5_Command" />
                                                                                                        
                                                                                                    </ItemTemplate>
                                                                                                </asp:TemplateField>
                                                                                            </Columns>
                                                                                        </asp:GridView>
																					
																					</td>
																				</tr>
																			</tbody>
																		</table>
																		<table>
																		    <tr>
																		        <td>
																		            <table style="border:0px; width:100%;"> 
																		                <tr>
																		                    <td>Option</td>
																		                    <td>
																		            <asp:DropDownList ID="DropDownList1" runat="server" Width="120px">
                                                                                        <asp:ListItem Value="0">No resize</asp:ListItem>
                                                                                        <asp:ListItem Value="1">Resize</asp:ListItem>
                                                                                    </asp:DropDownList></td>
																		                </tr>
																		            </table>
																		        </td>
																		    </tr>
																		    <tr>
																		        <td>
																		            <asp:DataList ID="dtlUploadImage" runat="server" BorderStyle="None">
                                                                                        <ItemTemplate>
                                                                                           <table style="border:0px;">
                                                                                           <tr>
                                                                                            <td>
                                                                                           Featured Type <%# Eval("FeaturedType")%> </td>
                                                                                            <td>
                                                                                           <asp:FileUpload ID="fluFile" runat="server" />
                                                                                            <asp:Literal ID="ltrValue" Text='<%# "aid_"+Eval("ID").ToString()+"_"+Eval("FeaturedType").ToString()+"_"+Eval("kTitle").ToString().ToLower().Trim().Replace(" ","-")+"-" %>'
                                                                                             runat="server" Visible="false"></asp:Literal>
                                                                                             <asp:Literal ID="ltrImagePath" Visible="false" text='<%# FeaturedImage(Eval("ID"),Eval("kTitle"),Eval("fYear"),Eval("FeaturedType")) %>' runat="server"></asp:Literal>
                                                                                             </td>
                                                                                           </tr>
                                                                                           </table>
                                                                                        </ItemTemplate>
                                                                                    </asp:DataList>
                                                                                </td>
																		    </tr>
																	
																		    <tr>
																		        <td>
																		            <asp:Button ID="btnUpload" runat="server" CssClass="submitbutton" Text="Upload" 
                                                                                        Width="100px" onclick="btnUpload_Click" />
                                                                                </td>
																		    </tr>
																	
																		</table>
																		<hr />
																		
                                                                                    <table style="border:0px;" cellpadding="0" cellspacing="0" width="100%">
                                                                                        <tr>
                                                                                            <td class="padLeft">
                                                                                                <table  style="border:0px;"  cellpadding="0" cellspacing="0">
                                                                                                    <tr>
                                                                                                        <td class="padRight" valign="top">
                                                                                                            <table  style="border:0px;"  cellpadding="0" cellspacing="0">
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                        <p class="BlockText">
                                                                                                                            <strong style="">Upload Steps:</strong><br />
                                                                                                                        </p>
                                                                                                                        <ol type="1">
                                                                                                                            <li>Find the right Upload Line for the type of file you want to upload</li>
                                                                                                                            <li>Click on &quot;Browse..&quot; to find the upload file on your PC</li>
                                                                                                                            <li>Click on &quot;Upload&quot; to upload it to website</li>
                                                                                                                        </ol>
                                                                                                                        <br />
                                                                                                                        <strong style="">Picture Format:</strong><br />
                                                                                                                        <br />
                                                                                                                        For the highest picture quality, please conform the following picture format 
                                                                                                                        specification. Non standard size picture will be cropped to maintain 
                                                                                                                        consistency.
                                                                                                                        <ul type="circle">
                                                                                                                            <li>Format: JPEG (.jpg)</li>
                                                                                                                            <li>Resolution: 72 DPI</li>
                                                                                                                            <li>Any standard sizes below:<br />
                                                                                                                                200 W x 300 H pixels<br />
                                                                                                                                300 W x 450 H pixels<br />
                                                                                                                                400 W x 600 H pixels<br />
                                                                                                                            </li>
                                                                                                                        </ul>
	
	                                                                                                                </td>
                                                                                                                </tr>
                                                                                                            </table>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
	<!--/body content-->
		
 <script type='text/javascript'>
       function openWin(aid,ckid) 
        {
        var url="../detail.aspx?aid="+aid+"&ckid="+ckid;
            window.open(url);
        }
    </script>                                                                           
    
</asp:Content>

